package com.dreamwhale.machinery.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 二手机械出售
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("machine_sell")
public class MachineSell implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 标题
     */
    private String title;

    /**
     * 品牌
     */
    private Integer brandId;

    /**
     * 类型id
     */
    private Integer typeId;

    /**
     * 详细内容
     */
    private String message;

    /**
     * 年限
     */
    private String years;

    /**
     * 阅读次数
     */
    private Integer countNumber;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 是否删除
     */
    private Integer delFlag;

    /**
     * 车辆图片
     */
    private String image;

    /**
     * 发布分类
     */
    private Integer accessType;


    /**
     * 昵称
     */
    @TableField(exist = false)
    private String nickname;

    /**
     * 头像
     */
    @TableField(exist = false)
    private String avatar;


    /**
     * 品牌名称
     */
    @TableField(exist = false)
    private String name;

    /**
     * 机型名称
     */
    @TableField(exist = false)
    private String modelName;
    /**
     * 收藏
     */
    @TableField(exist = false)
    private Integer collect;
}
